﻿using ProduceBasicData.Domain.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProduceBasicData.Domain.WarehouseManage
{
    /// <summary>
    /// 出库单明细表
    /// </summary>
    public class StockOutOrderItem:BaseModel
    {
        /// <summary>
        /// 出库单ID
        /// </summary>
        public int? StockOutOrderId { get; set; }

        /// <summary>
        /// 车间id
        /// </summary>
        public int? WorkshopmodelId { get; set; }

        /// <summary>
        /// 物料ID
        /// </summary>
        public int MaterialId { get; set; }

        /// <summary>
        /// 物料编号
        /// </summary>
        public string? MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string? MaterialName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string? Specification { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string? Unit { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        public decimal PlannedQuantity { get; set; }

        /// <summary>
        /// 实际数量
        /// </summary>
        public decimal ActualQuantity { get; set; }

        /// <summary>
        /// 批次号
        /// </summary>
        public string? BatchNumber { get; set; }

        /// <summary>
        /// 源库位ID
        /// </summary>
        public int? SourceLocationId { get; set; }

        /// <summary>
        /// 源库位编号
        /// </summary>
        public string? SourceLocationCode { get; set; }

        /// <summary>
        /// 备注信息
        /// </summary>
        public string? Remark { get; set; }
    }
}
